<?php
    use app\admin\model\Preproduct;

    function bcp($bcp){
        if(empty($bcp))return;
            $admin = new Preproduct();
             $info = array_column(collection($admin->where("id in ($bcp)")->select())->toArray(),"cname");
return implode("<br/>",$info);

}

?>
<form  class="form-horizontal">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$row.order_id}        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
          <?php
            echo $typeList[$row['type']];

          ?>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">商品名称:</label>
        <div class="col-xs-12 col-sm-8">
            {$row['shopid']}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">半成品组成:</label>
        <div class="col-xs-12 col-sm-8">
            {:bcp($row['bcp'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" data-rule="required" class="form-control form-control" name="row[num]" type="number" value="{$row.num}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注信息:</label>
        <div class="col-xs-12 col-sm-8">
            {$row.mark}
        </div>
    </div>



</form>
